package com.gzist.blog_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gzist.blog_system.domain.Article;
import com.gzist.blog_system.domain.Statistic;

import java.util.List;

/**
 * @Entity generator.domain.Statistic
 */
public interface StatisticMapper extends BaseMapper<Statistic> {

    int insert(Article article);

    boolean updateHits(Statistic statistic);

    boolean updateComments(Statistic statistic);

    List<Statistic> getStatistic();

    Long getTotalVisit();

    Long getTotalComment();
}




